<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php 
$params = array();
if (isset($this->params['plugin'])) {
	$params['plugin'] = $this->params['plugin'];
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[:.QAT - <?php echo $title_for_layout?>.:]</title>
<link href="<?php echo $html->url('/')?>img/favicon.ico" rel="shortcut icon" type="image/x-icon" />

<?php 
// Load CSS
echo $this->Html->css('common', 'stylesheet', array('type' => 'text/css'));
echo $this->Html->script('jquery-1.7.2.min.js', array('type' => 'text/javascript'));
?>

	<!--[if IE 8]>
		<style type="text/css" media="all">@import "/theme/qat/css/ie8.css";</style>
	<![endif]-->
	<!--[if IE 9]>
		<style type="text/css" media="all">@import "/theme/qat/css/ie9.css";</style>
	<![endif]-->     
    
</head>
<body class="<?php echo Configure::read('Config.langCode');?>">
	<div id="wd-container">
		<div id="wd-header">
			<div id="language">
				<a <?php if(Configure::read('Config.langCode') == 'vi') echo 'class="current"';?>  href="<?php echo $html->url($this->params['pass'] + array('lang' => 'vi'))?>"><?php echo __("Tiếng Việt"); ?></a> | 
                                <a <?php if(Configure::read('Config.langCode') == 'en') echo 'class="current"';?> href="<?php echo $html->url($this->params['pass'] + array('lang' => 'en'))?>"><?php echo __("English"); ?></a>
			</div>
			<div id="search">
				<form method="post" action="<?php echo $this->Html->url('/search') ?>">
					<input class="submit" type="submit" value="" />
					<input class="search_input" name="data[Search][key]" type="text" onblur="<?php __("Tìm kiếm sản phẩm"); ?>" />
				</form>
			</div>
			
			<div id="wd-nav">
				<?php echo $this->element('menu',array('cache'=>'1 day'));?> 
			</div>
		</div>
		<div class="wd-content">	
            <div class="content_above">			
                <?php echo $content_for_layout;?>
            </div>		
            <div class="bellow_content">
			</div>
		</div>
		<div id="wd-footer">
			<?php echo $this->element('footer',array('cache'=>'1 day'));?> 
		</div>
	</div>
	
	<?php echo $this->element('cart')?>
	
    <!-- support -->
    <?php echo $this->element('support',array('cache'=>'1 day'));?> 
</div>	
    <!-- script -->
    <?php 
		// Load Javascript	
		echo $this->Html->script('main.js', array('type' => 'text/javascript'));	
  ?>
    <!-- script.end -->

</body>
</html>
